{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
{% csrf_token %}
    标题:<input type="text" name="title" value="{{ blog.title }}">
<br>
    内容:<input type="text" name="content" value="{{ blog.content }}">
<br>

发行时间:
<input type="date" name="publish_time" value="{{ blog.publish_time }}">
    <br>
修改时间:
    <input type="date" name="update_time" value="{{ blog.update_time }}">
<br>
    作者:
    <select name="author" id="author">
        {% for foo in author1 %}
            {% if blog.author.id == foo.id %}
                <option value="{{ foo.id }}"selected>{{ foo.name }}</option>
                {% else %}
                <option value="{{ foo.id }}">{{ foo.name }}</option>
            {% endif %}
        {% endfor %}
    </select>

<br>
<a href="{% url 'management:blog_del' blog.id %}">删除</a>

<br>
<input type="submit" value="提交">

</form>
</body>
</html>